<?php
/* @var $this AnalysisController */

?>
<table class="list_table" cellpadding="0" cellspacing="0" width="100%">
 	<tbody>
 		<tr>
			<td class="pro tl">
				<div class="c_img c_img50">
					<?php echo CHtml::link(Tool::thumb($data->zpt_pic,50,50),array('/home/tuan/detail','id'=>$data->zpt_id))?>
				</div>
				<p class="title_pro">
					<?php echo CHtml::link(mb_substr($data->zpt_title,0,16,'utf8'),array('/home/tuan/detail','id'=>$data->zpt_id))?>
				</p>
			</td>
			<td width="20%"><?php echo date('Y-m-d H:i',$data->zpt_start_time)?>-<br /><?php echo date('Y-m-d H:i',$data->zpt_end_time)?></td>
			<td width="16%"><span class="fs_14">&yen; <strong class="c_f60 ff_yh"><?php echo $data->zpt_price?></strong></span></td>
			<td width="14%">
				<?php
				if($data->zpt_status==1){
					echo "正在审核";
				}elseif($data->zpt_status==2){
					 if($data->zpt_start_time>time()){
							echo "等待开团";
						}elseif($data->zpt_end_time<time()){
							echo "已经结束";
						}else{
							if($data->zpt_close==1){
								echo "正在进行";
							}elseif($data->zpt_close==2){
								echo "已经关闭";
							}
						}
				}elseif($data->zpt_status==3){
					echo "未通过";
				}
				 ?>
			</td>
			<td width="13%">
				<?php if($data->zpt_start_time<time()&&$data->zpt_end_time>time()&&$data->zpt_status==2) echo CHtml::link(($data->zpt_close==1)?Yii::t('cmp','Stop'):Yii::t('cmp','Run'),array('changeTuan','id'=>$data->zpt_id),array('class'=>'c_06c')) //启动停止?>
				<?php if(!($data->zpt_status==2&&$data->zpt_start_time<time()&&$data->zpt_end_time>time()&&$data->zpt_close==1)) echo CHtml::link(Yii::t('glo','Update'),array('updateTuan','id'=>$data->zpt_id),array('class'=>'c_06c')) ?>
				<?php if(!($data->zpt_status==2&&$data->zpt_start_time<time()&&$data->zpt_end_time>time()&&$data->zpt_close==1)) echo CHtml::link(Yii::t('glo','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("'.$this->pre_module_url.'/promotion/deleteTuan/id/'.$data->zpt_id.'","你确定要删除这条信息吗？")'))?> 
				<?php echo CHtml::link(Yii::t('glo','View'),array('/home/tuan/detail','id'=>$data->zpt_id),array('class'=>'c_06c'))?>
			</td>
		</tr>
	</tbody>
</table>
 